package XML;

import java.io.File;

public class DocumentXML {
	TagXML radacina = null;
	boolean hasInstance= false;
	File f = null; // creeaza un obiect f de tip File
	DocumentXML instance=null;
	
	public DocumentXML(TagXML radacina, String filename) {
		this.radacina = radacina;
		this.f = new File (filename);
	}

	public DocumentXML getInstance() {
		return instance;
	}
	public TagXML getRadacina() {
		return radacina;
	}

	public void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}
	public void acceptVisitor(XMLVisitor v) {
		v.visit(radacina);
	}



	
	

	
	
	

}
